/*
 * Fila.java
 *
 * Created on 22 de Junho de 2007, 00:29
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.jerm.Mapeamento;

import java.util.ArrayList;

/**
 *
 * @author tiagofalcao
 */
public class Fila {
    
    private ArrayList<Object>  Fila;
    
    /** Creates a new instance of Fila */
    public Fila() {
        Fila=new ArrayList();
    }
    
    public void put(Object o){
        Fila.add(o);
    }
    
    public Object get(){
        return Fila.remove(0);
    }
    
    public void offer(Object o){
        Fila.add(o);
    }
    
    public Object poll(){
        return Fila.remove(0);
    }
    
    public int size(){
        return Fila.size();
    }
}
